<HTML
><HEAD
><TITLE
>GrSetGCRegion()</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="Nano-X Library API"
HREF="index.html"><LINK
REL="UP"
TITLE="Nano-X Function Reference"
HREF="ch2.html"><LINK
REL="PREVIOUS"
TITLE="GrSetGCMode()"
HREF="nxapi_GrSetGCMode.html"><LINK
REL="NEXT"
TITLE="GrSetGCUseBackground()"
HREF="nxapi_GrSetGCUseBackground.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nano-X Library API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="nxapi_GrSetGCMode.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nxapi_GrSetGCUseBackground.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="NXAPI.GRSETGCREGION"
><TT
CLASS="FUNCTION"
>GrSetGCRegion()</TT
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7490"
></A
><H2
>Name</H2
><TT
CLASS="FUNCTION"
>GrSetGCRegion()</TT
>&nbsp;--&nbsp;Set the clipping region for a graphics context</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7494"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7495"
></A
><P
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>  void               <B
CLASS="FSFUNC"
>  GrSetGCRegion         </B
></CODE
>( GR_GC_ID           <VAR
CLASS="PDPARAM"
> gc                    </VAR
>,  GR_REGION_ID       <VAR
CLASS="PDPARAM"
> region                </VAR
>);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7503"
></A
><H2
>Description</H2
><P
>    This function sets the clipping region for the specified graphics
    context to the specified region. Subsequent drawing functions
    will not draw beyond the limits of the clipping region.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7506"
></A
><H2
>Parameters</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN7508"
></A
><P
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Type</TH
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Name</TH
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_GC_ID.html"
><SPAN
CLASS="TYPE"
>GR_GC_ID</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>gc</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The ID of the graphics context to set the clipping region of.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_REGION_ID.html"
><SPAN
CLASS="TYPE"
>GR_REGION_ID</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>region</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The ID of the region to use, 0 to set no clipping region.</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7533"
></A
><H2
>See Also</H2
><P
>      <A
HREF="nxapi_GrNewRegion.html"
>            <TT
CLASS="FUNCTION"
>GrNewRegion()</TT
></A
>, 
      <A
HREF="nxapi_GrNewGC.html"
>            <TT
CLASS="FUNCTION"
>GrNewGC()</TT
></A
>,
      <A
HREF="nxapi_GrGetGCInfo.html"
>            <TT
CLASS="FUNCTION"
>GrGetGCInfo()</TT
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="nxapi_GrSetGCMode.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nxapi_GrSetGCUseBackground.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrSetGCMode()</TT
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ch2.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrSetGCUseBackground()</TT
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>